﻿using System;
using System.Collections.Generic;

namespace Delphi.Mimir.Data.Entities.Final {
    public class Order {
        public Order() {
            OrderExecutions = new List<OrderExecution>();
        }
        public int OrderId { set; get; }
        public int ManagedProductId { set; get; }
        public virtual ManagedProduct ManagedProduct { set; get; }
        public int SymbolId { set; get; }
        public virtual Symbol Symbol { set; get; }
        public int Quantity { set; get; }
        public Decimal? MaximalAmount { set; get; }
        public DateTime EntryDate { set; get; }
        public DateTime ValidFromDate { set; get; }
        public DateTime? ValidUntilDate { set; get; }
        public virtual OrderConstraint OrderConstraint { set; get; }
        public int OrderConstraintId { set; get; }
        public ICollection<OrderExecution> OrderExecutions { set; get; }
        public Decimal? Limit { set; get; }
        public bool Cancelled { set; get; }
        public bool Executed { set; get; }
    }
}
